class UpdateCampaignsWorker < BackgrounDRb::MetaWorker
  set_worker_name :update_campaigns_worker
  
  def create(args = nil)
    logger.info("Setting up Worker: UpdateCampaignsWorker")
  end
  
  def update_campaign_status
    logger.info("#{Time.now}: Calling update campaign status in worker")
    
    Campaign.update_ended_campaigns(logger)
   
  end
end
